<template>
	<view class="disclaimer">
		<!-- <view class="disclaimer-title">免责声明</view> -->
		<view class="disclaimer-content">
			<u-parse :content="obj.agreementContent" :selectable="true" :lazyLoad="true"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				obj: {}
			};
		},
		onShow() {
			this.findAgreement(3)
		},
		methods: {
			async findAgreement(role) {
				const {
					data
				} = await uni.$http.post('/agreement/findAgreement?role=' + role)
				if (data.code === 200) {
					this.obj = data.data
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.disclaimer {
		width: 100%;
		height: 100%;
		overflow: auto;
		padding: 20rpx 30rpx;
		color: #666;
		box-sizing: border-box;

		.disclaimer-title {
			text-align: center;
			font-size: 26rpx;
			font-weight: bold;
		}

		.disclaimer-content {
			line-height: 50rpx;
			text-align: left;
		}
	}
</style>